/**
 * 设备型号信息表
 */
import { postRequest } from '/@/lib/axios'

export const deviceApi = {
  /**
   * 分页
   */
  page: (param) => {
    return postRequest('/b-operation/device/page', param)
  },
  /**
   * 根据id查询
   */
  findId: (param) => {
    return postRequest('/b-operation/device/find_id', param)
  },
  /**
   * 新增
   */
  insert: (param) => {
    return postRequest('/b-operation/device/insert', param)
  },
  /**
   * 修改
   */
  update: (param) => {
    return postRequest('/b-operation/device/update', param)
  },
  /**
   * 修改状态
   */
  updateStatus: (param) => {
    return postRequest('/b-operation/device/update_status', param)
  },
  /**
   * 删除
   */
  delete: (param) => {
    return postRequest('/b-operation/device/delete', param)
  },
  /**
   * 绑定和解绑
   */
  bindAndUnbind: (param) => {
    return postRequest('/b-operation/device/bind_and_unbind', param)
  },
  /**
   * 测试推送消息
   */
  broadcast: (param) => {
    return postRequest('/b-operation/device/broadcast', param)
  },
}
